<!--菜单树-->
<div class="menu-tree scroll-style left-menu">
    <!--<div class="menu-close-btn">-->
    <!--<span id="menu-close-btn" class="l-tree-icon icon-left_caidan"></span>-->
    <!--<div class="title">菜单</div>-->
    <!--</div>-->
    <!--<div class="home-page">-->
        <!--<span class="l-tree-icon icon-left_shouye"></span>-->
        <!--<div class="title showRight" th:attr="data-url='index',data-system=3">首页</div>-->
    
	<!--</div>-->
    <ul class="tree-container">
        <!-- th:class="|${lists.isEmpty(resource.children)}? close:open tree-item|" -->
        <!--level - 1-->
        <li class="tree-item" th:each="resource,iterStat : ${session.resources}"
            th:class="${resource.name == level1} ? 'tree-item open':'tree-item'"
            th:if=${resource.enable}>
            <div th:class="|menu-title ${#lists.isEmpty(resource.children)?'no-arrow':''}|">
                <span th:class="|${resource.iconCls} l-tree-icon|" class="l-tree-icon icon-left_shebeiguanli"></span>
                <div class="title"
                     th:text="${resource.name}"
					 th:attr="data-code=${resource.code},data-system=${resource.belongSystem},data-url=${resource.url},data-name=${resource.name}"
                     th:class="${#lists.isEmpty(resource.children)} ? 'title showRight':'title'">设备管理
                </div>
            </div>
            <ul th:unless="${#lists.isEmpty(resource.children)}">
                <!--level - 2-->
                <li th:each="resource2,iterStat2 : ${resource.children}"
                    th:class="${resource2.name == level2} ? 'open':''"
                    th:if=${resource2.enable}>

                    <div class="menu-title arrow"
                         th:class="|${#lists.isEmpty(resource2.children)?'':'arrow'} menu-title|">
                        <div class="title"
                             th:text="${resource2.name}"
                             th:attr="data-url=${resource2.url},data-code=${resource2.code},data-system=${resource2.belongSystem},data-name=${resource2.name}"
                             th:class="${#lists.isEmpty(resource2.children)} ? 'title showRight':'title'">设备注册管理
                        </div>
                    </div>


                    <ul th:unless="${#lists.isEmpty(resource2.children)}">
                        <!--level - 3-->
                        <li th:each="resource3,iterStat3 : ${resource2.children}"
                            th:class="${resource3.name == level3} ? 'open':''"
                            th:if=${resource3.enable}>
                            <div class="menu-title arrow"
                                 th:class="|${#lists.isEmpty(resource3.children)?'':'arrow'} menu-title|">
                                <div class="title" th:text="${resource3.name}"
                                     th:attr="data-url=${resource3.url},data-system=${resource3.belongSystem},data-code=${resource3.code},data-name=${resource3.name}"
                                     th:class="${#lists.isEmpty(resource3.children)} ? 'title showRight':'title'">设备类别
                                </div>
                            </div>
                            <!--level - 4-->
                            <ul th:unless="${#lists.isEmpty(resource3.children)}">
                                <li th:each="resource4,iterStat4 : ${resource3.children}"
                                    th:class="${resource4.name == level4} ? 'open':''"
                                    th:if=${resource4.enable}>
                                    <div class="menu-title">
                                        <div class="title" th:text="${resource4.name}"
                                             th:attr="data-url=${resource4.url},data-system=${resource4.belongSystem},data-code=${resource4.code},data-name=${resource4.name}"
                                             th:class="${#lists.isEmpty(resource4.children)} ? 'title showRight':'title'">
                                            参数管理
                                        </div>
                                    </div>
                                </li>

                            </ul>
                        </li>

                    </ul>
                </li>
            </ul>
        </li>
        <!--level - 1-->
        <!-- <li class="tree-item">
            <div class="menu-title arrow">
                <span class="l-tree-icon icon-left_nenghao"></span>
                <div class="title">能耗管理</div>
            </div>
            <ul>
                <li>
                    <div class="menu-title">
                        <div class="title">能耗设备</div>
                    </div>
                </li>
                <li>
                    <div class="menu-title">
                        <div class="title">能耗查询</div>
                    </div>
                </li>
                <li>
                    <div class="menu-title">
                        <div class="title">能耗分析</div>
                    </div>
                </li>
            </ul>
        </li>
        level - 1
        <li class="tree-item  open">
            <div class="menu-title arrow">
                <span class="l-tree-icon icon-left_shiping"></span>
                <div class="title">视频监控</div>
            </div>
            <ul>
                <li>
                    <div class="menu-title">
                        <div class="title">视频设备管理</div>
                    </div>
                </li>
                <li>
                    <div class="menu-title">
                        <div class="title">视频监控管理</div>
                    </div>
                </li>
            </ul>
        </li>
        level - 1
        <li class="tree-item">
            <div class="menu-title arrow">
                <span class="l-tree-icon icon-left_tongjibaobiao"></span>
                <div class="title">统计报表</div>
            </div>
            <ul>
                <li>
                    <div class="menu-title">
                        <div class="title">停机历史统计</div>
                    </div>
                </li>
                <li>
                    <div class="menu-title">
                        <div class="title">预警历史统计</div>
                    </div>
                </li>
            </ul>
        </li>
        <li class="tree-item">
            <div class="menu-title arrow">
                <span class="l-tree-icon icon-left_rizhiguanli"></span>
                <div class="title">日志管理</div>
            </div>
            <ul>
                <li>
                    <div class="menu-title">
                        <div class="title">访问日志</div>
                    </div>
                </li>
                <li>
                    <div class="menu-title">
                        <div class="title">操作日志</div>
                    </div>
                </li>
                <li>
                    <div class="menu-title">
                        <div class="title">异常日志</div>
                    </div>
                </li>
            </ul>
        </li>
        <li class="tree-item">
            <div class="menu-title arrow">
                <span class="l-tree-icon icon-left_shezhi"></span>
                <div class="title">系统管理</div>
            </div>
            <ul>
                <li>
                    <div class="menu-title">
                        <div class="title">用户管理</div>
                    </div>
                </li>
                <li>
                    <div class="menu-title">
                        <div class="title">角色管理</div>
                    </div>
                </li>
                <li>
                    <div class="menu-title">
                        <div class="title">登录管理</div>
                    </div>
                </li>
                <li>
                    <div class="menu-title">
                        <div class="title">工序管理</div>
                    </div>
                </li>
            </ul>
        </li> -->
    </ul>
</div>